package com.feonix.test;

import java.util.ArrayList;
import java.util.List;

import com.feonix.entity.User;
import com.feonix.utils.RedisUtil;

public class Main {

	public static void main(String[] args) {
		
		//需要配置redis的 密码，否则报错
		RedisUtil.set("aaa", "bbb1");
		System.out.println(RedisUtil.get("aaa"));
		//List<User> list = new ArrayList<User>();
		//User user = new User(111, "lalal");
		//list.add(user);
		//RedisUtil.setObject("ccc", list);
		//System.out.println(((User)((List)RedisUtil.getObject("ccc")).get(0)).getName());

	}

}
